<meta content="telephone=no" name="format-detection" />
<title>{$sys_name} - 转赠</title>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <!-- Bootstrap -->
    <link href="/css/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/css/reset.css" rel="stylesheet">
    <link href="/css/css/style.css" rel="stylesheet">
    <script src="/js/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script src="/js/js/respond.js" type="text/javascript"></script>
    <script src="/js/js/common.js" type="text/javascript"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<style>
    .nav_list ul li ul{
        display: block;
    }
    .nav_list ul li em{
        border-right: 0 !important;
        border-left: 1px solid;
    }
    input::-webkit-input-placeholder {
        /* placeholder颜色  */
        color: #ccd5e0;
        /* placeholder字体大小  */
        font-size: 12px;
    }
</style>
<body class="bg">
<!--头部-->
<include file="Public/Home/Pubheader.html" />
<section class="wrapper">
    <!--左侧导航-->
    <include file="Public/Home/Menu.html" />

    <div class="content-area">
        <div class="t80"></div>
        <div class="z_top">
            <div class="location">
                <img src="images/location.png" alt="">
                <span>{$lang.ur_here}：转赠</span>
            </div>
        </div>
        <div class="content">
            <div class="main_top bq_bg">
                <div class="font18 f2">
                    <img src="images/top_icon3.png" alt="">
                    <p style="width: 70%;font-size: 14px">
                        {$B}：<span style="font-size: 14px">{$user.usermoney}</span>
                    </p>
                    <p style="width: 70%;font-size: 14px">
                        USDT：<span style="font-size: 14px">{$user.sellmoney}</span>
                    </p>
                </div>

            </div>
            <div class="row team">
                <div class="col-md-6 col-sm-12 ">
                    <div class="block">
                        <div class="block_title">
                            <span>转赠</span>
                        </div>
                        <div class="cz_list">
                            <form action="{:U('User/zz_done')}" method="post" id="MyForm"  name="MyForm">
                                <div class="media align-items-center cz_form" style="display: none">
                                    <span class="cz_font">币&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;种</span>
                                    <div class="media-body">
                                        <select class="sele">
                                            <option value="">LTC</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="media align-items-center cz_form">
                                    <span class="cz_font">转赠{$lang.num}</span>
                                    <div class="media-body">
                                        <input type="text" name="tx_num" id="tx_num" class="sele txnum" placeholder="" value="">
                                    </div>
                                </div>
                                <div class=" fx_c">
                                    <div class="media align-items-center cz_form">
                                        <span class="cz_font qbdz1">转赠给</span>
                                        <div class="media-body ">
                                            <div class="fx_in1 txnum1" >
                                                <input type="text" name="qbdz" placeholder="填写转赠人用户名" id="qbdz" value="">
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="media align-items-center cz_form">
                                    <span class="cz_font"></span>
                                    <div class="media-body">
                                        <div class="cz_text" id="cz_text">
                                        </div>
                                        <textarea id="gzjs_cont" style="display: none">{$txsm}</textarea>
                                    </div>
                                    <script type="text/javascript">
                                        document.getElementById("cz_text").innerHTML = $("#gzjs_cont").val();
                                    </script>
                                </div>
                                <div class="media align-items-center cz_form">
                                    <span class="cz_font"></span>
                                    <div class="media-body">
                                        <input type="hidden" value="{$tx_on}" id="tx_on">
                                        <if condition="$tx_on eq 0">
                                            <input type="button"  class="cz_btn" value="暂停转赠">
                                            <else/>
                                            <input type="button" id="cz_btn" class="cz_btn" value="转赠">
                                        </if>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

                <script type="text/javascript">
                    $("#cz_btn").click(function(){
                        var num = $("#tx_num").val();
                        var qbdz = $("#qbdz").val();
                        var tx_on = $("#tx_on").val();
                        if(tx_on == 1){
                            if(num){
                                if(qbdz==''){
                                    document.getElementById("showmsg").innerHTML= "转赠账号不能为空";
                                    $("#sysmsg").show();
                                }else{
                                    document.MyForm.submit();
                                }
                            }else{
                                document.getElementById("showmsg").innerHTML= "请输入转赠数量";
                                $("#sysmsg").show();
                            }
                        }else{
                            document.getElementById("showmsg").innerHTML= "系统暂时关闭转赠！";
                            $("#sysmsg").show();
                        }
                    })
                </script>
                <div class="col-md-6 col-sm-12 t_20">
                    <div class="block">
                        <div class="block_title">
                            <span>转赠记录</span><span style="float: right;margin-right: 20px"><a href="{:U('User/zj_list')}">{$lang.ckmx}</a></span>
                        </div>
                        <div class="t_tab fx_tab t_0" style="height: 300px;overflow: auto;">
                            <table>
                                <tr>
                                    <td width="30%">金额</td>
                                    <td width="30%">用户</td>
                                    <td width="40%">日期</td>
                                </tr>
                                <foreach name="zz_list" item="item">
                                    <tr class="tab_bg">
                                        <td>
                                            <font color="#30c4a9">{$item.money}</font>
                                        </td>
                                        <td>{$item.zzuser}</td>
                                        <td>{:date('Y-m-d H:i:s',$item[date])}</td>
                                    </tr>
                                </foreach>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</section>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/js/js/bootstrap.js"></script>

<script type="text/javascript" language="javascript">
    var nav1 = document.getElementById("nav1");
    var links1 = nav1.getElementsByTagName("li");
    var lilen1 = nav1.getElementsByTagName("a");
    var currenturl1 = document.location.href;
    var last1 = 0;
    for (var i1=0;i1<links1.length;i1++)
    {
        var linkurl1 = lilen1[i1].getAttribute("href");
        if(currenturl1.indexOf(linkurl1)!=-1)
        {
            last1 = i1;
        }
    }

    links1[last1].className = "cur1";

</script>

<!--信息框-->
<include file="Public/Home/Showmsg.html" />

</body>

</html>
